package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory;
import cn.stylefeng.guns.sys.modular.system.entity.BtyTxl;
import cn.stylefeng.guns.sys.modular.system.mapper.BtyAqjjMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class BtyAqjjService {

    @Autowired
    private BtyAqjjMapper mapper;
    /**
     * 获取档案管理列表
     *
     * @author fengshuonan
     * @Date 2018/12/23 6:05 PM
     */

    public Page<Map<String, Object>> list(String ctbh, String dm) {
        Page page = LayuiPageFactory.defaultPage();
        return this.mapper.list(page, ctbh, dm);
    }



    public BtyTxl getByID(Long id){
        return this.mapper.getByID(id);
    }

    public int update(BtyTxl btyTxl){
        return this.mapper.update(btyTxl);
    }

}
